<?php

namespace app\index\validate\admin;

use think\Validate;

class BaseResourceValidate extends Validate
{
    protected $rule = [
        'id' => 'require|number',
    ];

    protected $message = [
        'id.require' => [
            'code' => INVALID_PARAM,
            'msg' => 'id必须传'
        ],
    ];

    protected $scene = [
        'detail' => ['id']
    ];
}